package com.gurun.camera.device;

import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;

import com.gurun.camera.BaseActivity;
import com.gurun.camera.R;

public class DeviceActivity extends BaseActivity {

    String device_id;

    public static void startActivity(Context context, String id){
        Intent intent = new Intent();
        intent.setClass(context, DeviceActivity.class);
        intent.putExtra("device_id", id);
        context.startActivity(intent);
    }

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_device);
        device_id = getIntent().getStringExtra("device_id");
    }

    public void onClickVideo(View view){
        VideoActivity.startActivity(this, device_id,"");
    }

    public void onClickHub(View view){
//        HubActivity.startActivity(this, device_id);
    }
}
